<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>聊天室</title>
    <style>
        body {
            background-color: aqua;
        }

        * {
            margin: 0;
            padding: 0;
        }

        .first {
            margin-top: 30px;
            width: 1200px;
            height: 680px;
            margin-left: auto;
            margin-right: auto;
        }

        .first > p {
            text-indent: 20px;
            height: 90px;
            background-color: #373a3f;
            color: white;
            line-height: 90px;
        }

        .l {
            float: left;
            height: 590px;
            width: 999px;
            background-color: gray;
        }

        .r {
            float: left;
            height: 590px;
            width: 200px;
            border-left: gray solid 1px;
        }

        .r p:nth-child(1) {
            color: blue;
            height: 50px;
            background-color: white;
            line-height: 50px;
            border-bottom: gray 1px solid;
        }

        .r p:nth-child(2) {
            height: 200px;
            background-color: white;
        }

        .r p:nth-child(3) {
            color: blue;
            height: 50px;
            background-color: white;
            line-height: 50px;
            border-bottom: gray 1px solid;
        }

        .r p:nth-child(4) {
            height: 290px;
            background-color: white;
        }

        .l p:nth-child(1) {
            height: 400px;
            background-color: white;
            border-bottom: gray 1px solid;
        }

        .l p:nth-child(2) {
            position: relative;
            background-color: white;
            height: 190px;
        }

        a {
            text-indent: 0;
            text-decoration: none;
            position: absolute;
            bottom: 10px;
            right: 10px;
            border-radius: 15%;
            display: inline-block;
            color: white;
            text-align: center;
            line-height: 30px;
            height: 30px;
            width: 60px;
            background-color: #00a9fe;
            border: #373a3f 1px solid;
        }

        a:hover {
            background-color: aqua;
        }

        textarea {
            height: 100%;
            width: 100%;
            color: black;
            font-size: 17px;
            border: none;
            outline: none;
            resize: none;
        }

        textarea:hover {
            text-decoration: none;
        }


    </style>
</head>
<body>
<div class="first">
    <p>
        用户:&nbsp;&nbsp;&nbsp;<span class="username">张三</span>
    </p>
    <div class="l">
        <p></p>
        <p>
            <textarea id="vae"></textarea>
            <a href="javascript:void(0)" id="send">发送</a>
        </p>
    </div>
    <div class="r">
        <p>好友列表</p>
        <p></p>
        <p>系统广播</p>
        <p></p>
    </div>
</div>

</body>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script>
    $('#send').click(function () {
    //    获取输入的内容
        var data =$('#vae').val();
        //清空输入区的内容
        $('#vae').val("");
    });

</script>
</html>
